<?php
/*
 * Created on 2012-3-19
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 *
 *
 */

 //print_r(gd_info());

 //echo image_type_to_extension(3);

 header("Content-type:image/png");


 $im = imagecreatetruecolor(300,300);


 //$str = 'php';

 $bg = imagecolorallocate($im,255,100,0);

 $black = imagecolorallocate($im,0,0,0);

 imagecharup($im,5,0,0,$str,$black);

 imagepng($im);

 imagedestroy($im);


?>